Lab 4

Saransh Kacharia
Nobember 1st, 2020

Problem 1

In this problem we are looking at the data from a gamma-ray satellite orbiting in low Earth orbit. It takes a reading of the number of particles detected every 100 milliseconds, and is in an approximately 90 minute orbit. While it is looking for gamma-ray bursts, virtually all of the particles detected are background cosmic rays.

I plotted 300,000 rows of the data which shows data through 500 minutes. As we can see in the Longitude vs Time plot, the orbit is approximately 90 minutes. The Solar Phase vs Time plot has a period that is smaller than the Logitude vs Time plot because of the earths rotation.

We also see a similar periodic shape in the background. This suggests that there is a background periodic signal which is contaminating the data. We expect the background cosmic radiation to be a steady signal with no discernable patterns.

From the plots above we can conclude that the solar phase doesn't affect the background but the logitude does. As the longitude goes from 0 to 360 degrees we see the particle count decrease from -45 to 105 degrees before flattening out until 315 degrees, after which is jumps back up and cycles again.

Cosmic rays should be constant and independent of longitude. This confirms our theory that there is a periodic signal contamination in the background that depends on longitude.

We know that the number of cosmic rays is a finite number so we can find a Poisson distribution for each degree of Longitude. To do that we can find a mean for each longitude and then calculate a Poisson distribution with that mean.

This is a plot of the mean of the particle count at each Longitude. As expected, it follows the brightest region of the 2D Histogram.

The PDF with time dependence can be modeled with a function that calculates the Longitude from the time and then determines the PMF from the Poisson distribution at that Longitude.

Comparing our model to the data, we can see that our model performs well. The real data distribution is shifted slightly to the right because our model calculate the distribution more finely. When comparing it with real data we determine the Logitude at that given time then we average our data over 1 degree. This results in a slight shift to the right because we are including a greater range of times.

We can now find the 5-sigma threshold for different time/longitude values.

As we can see, the sigma value changes for different times/longitudes. It ranges from 21 to 32 depending on the time/longitude.

This dependance of the particle count on longitude comes from the South Atlantic Anomaly. In this region we measure a greater number of cosmic rays.

Problem 2

In this problem we are going to look at a stack of telescope images. From these images we will determine the faintest stars.

From these images, it is difficult to locate the faintest stars. Something we can do is to calculate a PDF of the pixel brightness of all the images, and because a stars brightness is independent of time, that star should be there for all of the images. Due to this we can sum the brightness for each pixel between the images then find the PDF. There is some contamination but when summing all the images the contamination will be washed out.

We can see that the background is a normal distribution and the stars which are brighter are outside the background distribution. We can determine the mean and standard deviation of the background distribution to count the number of stars that are any sigma threshold brighter than the background.

We can remove any data points that are greater that 8 brightness to calculate the mean and standard deviation of the background.

We find that the background brightness has a mean of -0.002 and a standard deviation of 1.776. We can see from the plot that a normal distribution with these parameters fits the background data well. Now we can find faint stars by counting the number of stars that are brighter with sigma values greater than a certain threshold.

We can conclude with 5 sigma certainty that there are 125 stars. We can conclude with 7 sigma certainty that there are 121 stars. That means there are 4 stars that are the faintest stars with brightnesses between 8.88 and 12.43 when all the images are summed.

My partner and I had a different PDF because we were looking for different things. To look for a transient, the PDF that would have been used in that case would be to average of all the images and then subtracting each image from the average. After which you could find the probability of seeing something that isn't in any of the other images.